<template>
  <div>
    <bottomTabbar />
    <swiper :swipers="swipers" />
  </div>
</template>

<script>
//引入底部组件
import bottomTabbar from '@/components/bottomTabbar'
import swiper from '@/components/swiper'
export default {
  name: 'index',
  //部件
  components: {
    bottomTabbar,
    swiper
  },
  data () {
    return {
      swipers: [
        'https://img.yzcdn.cn/vant/apple-1.jpg',
        'https://img.yzcdn.cn/vant/apple-2.jpg'
      ]
    }
  },
  created () {
    this.$http.get('getuser')
  },

}
</script>

<style lang="scss" scoped>
</style>
